module.exports =  function(npc){
  let group = npc.dialogue.group("d1", {
		once: true,
		task: {
			id: "primary/丰华村/止血草/1",
      pick: true
		},
	});

  group.section('你好，你是老李吗？', `啊对对，你是村长救来的那小伙吧！`);
  group.section('是的，村长让我去采集止血草，让我来你这领取一把合手的武器', `噢噢噢噢，可以可以，我这里正好刚锻造出了两把新武器，你选一选。`);

  let [g1, g2, g3] = group.section([npc.dialogue.group('d2-s1'),
    npc.dialogue.group('d2-s2'),
    npc.dialogue.group('d2-s3')
  ]);

  let g1s1 = g1.section('我要铁剑', '好咧~');
  let g1s2 = g2.section('我要铁匕首', '好咧~');
  
  g1s1.click = () => {
    let flag = npc.root.backdrop.getGoodAndPut('武器/凡器/铁剑');

    if(flag) group.saveOnce();
  }

  g1s2.click = () => {
    let flag = npc.root.backdrop.getGoodAndPut('武器/凡器/铁匕首');

    if(flag) group.saveOnce();
  }

  g3.section('我再想想', '没问题，我在这里等你。');
  return group;
}